package com.tb.service;

import com.tb.mapper.UserMapper;
import com.tb.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: wangguichun
 * @create: 2018-04-08 09:59
 **/

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public String getName() {
        return userMapper.getName();
    }

    public List<User> getUserList() {
        return userMapper.getUserList();
    }

    public User getUserById(int userId) {
        return userMapper.getUserById(userId);

    }
}
